/*******************************************************************************
 * Copyright (c) 2009 Kevin Bierhoff and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Kevin Bierhoff - initial API and implementation
 *******************************************************************************/
package com.googlecode.twelfdevtools.model;

import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;

/**
 * Model interface for Twelf constant and variable declarations
 * @author kevin
 */
public interface ITwelfNamedElement extends ITwelfModelElement {

	public String getId();
	
	public String getDeclaration();

	public IRegion getIdentifierRange(IDocument doc) throws BadLocationException;

	/** Returns the declaring file */
	public IElfFile getFile();

}
